package com.zjut.VO;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created by Ryan on 2016/10/2.
 */
public class ProductVO {

    private String page;//页面地址
    private String productName;//商品名
    private String productUsingInfo;//使用状态
    private String productLink;//jd商城链接

    private Long productJDID;//jd商城产品编号
    private Long productDbID;//夺宝岛编号
    private String productAppearance;//外观信息
    private String productLocale;//地点
    private String productAttachmentList;//附件信息
    private int watchedTimes;//观看数
    private Date endTime;//竞拍结束时间
    private BigDecimal topPrice;//原价
    private BigDecimal currentPrice;//竞拍价
    private BigDecimal discount;//打折

    public List<HitVO> getHitVOList() {
        return hitVOList;
    }

    public void setHitVOList(List<HitVO> hitVOList) {
        this.hitVOList = hitVOList;
    }

    private List<HitVO> hitVOList;//出价列表

    public String getPage() {
        return page;
    }

    public String getProductName() {
        return productName;
    }

    public String getProductUsingInfo() {
        return productUsingInfo;
    }

    public String getProductLink() {
        return productLink;
    }

    public Long getProductJDID() {
        return productJDID;
    }

    public Long getProductDbID() {
        return productDbID;
    }

    public String getProductAppearance() {
        return productAppearance;
    }

    public String getProductLocale() {
        return productLocale;
    }

    public String getProductAttachmentList() {
        return productAttachmentList;
    }

    public int getWatchedTimes() {
        return watchedTimes;
    }

    public Date getEndTime() {
        return endTime;
    }

    public BigDecimal getTopPrice() {
        return topPrice;
    }

    public BigDecimal getCurrentPrice() {
        return currentPrice;
    }

    public BigDecimal getDiscount() {
        if(discount==null&&topPrice!=null&&currentPrice!=null)
            discount = currentPrice.divide(topPrice);
        return discount;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setProductUsingInfo(String productUsingInfo) {
        this.productUsingInfo = productUsingInfo;
    }

    public void setProductLink(String productLink) {
        this.productLink = productLink;
    }

    public void setProductJDID(Long productJDID) {
        this.productJDID = productJDID;
    }

    public void setProductDbID(Long productDbID) {
        this.productDbID = productDbID;
    }

    public void setProductAppearance(String productAppearance) {
        this.productAppearance = productAppearance;
    }

    public void setProductLocale(String productLocale) {
        this.productLocale = productLocale;
    }

    public void setProductAttachmentList(String productAttachmentList) {
        this.productAttachmentList = productAttachmentList;
    }

    public void setWatchedTimes(int watchedTimes) {
        this.watchedTimes = watchedTimes;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setTopPrice(BigDecimal topPrice) {
        this.topPrice = topPrice;
    }

    public void setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
}
